Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader.
More...
|
void | loadResourceSetDescFileSync (const ResourceSetLoadQuery &query, ResourceSetLoadResult &resultRef) |
|
void | loadResourceSetDescFileAsync (const ResourceSetLoadQuery &query, ResourceSaveLoadCallback *callback=nullptr) |
|
void | saveResourceSetDescFile (const ResourceSetSaveQuery &query) |
|
void | loadCamera (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadBlendState (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadDepthStencilState (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadRasterState (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadSampler (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadTexture (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadBuffer (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadShader (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadProgram (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadMesh (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadCompositor (const std::string_view &path, const std::string_view &compoToDefault="", ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadNode (const std::string_view &path, ResourceSaveLoadCallback *callback=nullptr) |
|
Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader.
◆ loadResourceSetDescFileSync()
Requests to load a resource set, synchronously.
- Parameters
-
query | The resource set load query. |
resultRef | The result to populate. |
◆ loadResourceSetDescFileAsync()
Requests to load a resource set, asynchronously.
- Parameters
-
query | The resource set load query. |
callback | The callback interface to use. |
◆ saveResourceSetDescFile()
Requests to save a resource set, Synchronously.
- Parameters
-
query | The resource set save query. |
◆ loadCamera()
void nkGraphics::ResourceManager::loadCamera |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a camera declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadBlendState()
void nkGraphics::ResourceManager::loadBlendState |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a blend state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadDepthStencilState()
void nkGraphics::ResourceManager::loadDepthStencilState |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a depth and stencil state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadRasterState()
void nkGraphics::ResourceManager::loadRasterState |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a raster state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadSampler()
void nkGraphics::ResourceManager::loadSampler |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a sampler declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadTexture()
void nkGraphics::ResourceManager::loadTexture |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a texture declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadBuffer()
void nkGraphics::ResourceManager::loadBuffer |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a buffer declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadShader()
void nkGraphics::ResourceManager::loadShader |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a sahder declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadProgram()
void nkGraphics::ResourceManager::loadProgram |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a program declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadMesh()
void nkGraphics::ResourceManager::loadMesh |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a mesh declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadCompositor()
void nkGraphics::ResourceManager::loadCompositor |
( |
const std::string_view & |
path, |
|
|
const std::string_view & |
compoToDefault = "" , |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a compositor declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
compoToDefault | The default name to set as a default. |
callback | The callback used for resource loading. |
◆ loadNode()
void nkGraphics::ResourceManager::loadNode |
( |
const std::string_view & |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a node (scene) declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
The documentation for this class was generated from the following file: